<template>
    <div class="Nav">
        <van-row>
            <van-col span="4">
                <van-icon @click="jump" name="arrow-left" />
            </van-col>
            <van-col span="10" offset="4"><span>{{nav}}</span></van-col>
        </van-row>
    </div>
</template>

<script>
export default {
    props: {
        nav:String,
        path:String
    },
    data() {
        return {
            
        };
    },
    methods: {
        jump() {
            console.log(this.path); //退回
            this.$router.push(this.path)
        },
    },
    
};
</script>

<style lang="scss" scoped>
.van-col{
    padding: 0.1rem;
    text-align: center;
}   
</style>